public class Test {
    String name="guanye";
    String name1="cs";
    public  void main1() {

        System.out.println(name.compareTo(name1));

    }

    public static void main(String[] args) {
        Test t=new Test();
        t.main1();
        System.out.println(t.name.indexOf("y"));
        System.out.println(t.name.charAt(1));
    }


}
